
<?
        include_once('inc/functions.php');
        require_once('inc/authentication.php');
        if(isset($_REQUEST['email']))
                DoLogin($_REQUEST['email'],$_REQUEST['password']);
?>

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>
	<?include_once('inc/tabs.php')?>
<body>
<div id="container">
        <? if(IsLoggedIn()){ ?>
                <h1>Congrats, <?=GetUserName()?>, you are now Logged In</h1>
<a href="index.php" onclick="logout()"><img src="inc/logoutbutton.png"/ length=20% width=20%></a>
    <? }else{ ?>
<h1> Email    -   Password </h1>
        <form method="post">
                <input type="email" name="email" autofocus title="Please type you email" />
            <input type="password" name="password" title="Your Password" />
            <input type="submit" value="Log In" />
        </form>
    <? } ?>
<script type="text/javascript">
                    function logout(){
                <?php session_destroy();?>
            }
</script>
 

</div>
</body>
</html>